// Fill out your copyright notice in the Description page of Project Settings.

#include "Isalong2.h"
#include "ResourceProviderActorBase.h"


// Sets default values
AResourceProviderActorBase::AResourceProviderActorBase()
{
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

}

// Called when the game starts or when spawned
void AResourceProviderActorBase::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void AResourceProviderActorBase::Tick( float DeltaTime )
{
	Super::Tick( DeltaTime );

}

void AResourceProviderActorBase::Take(float takeValuse)
{
	_contains = _contains - takeValuse > 0 ? _contains - takeValuse : 0;
}

void AResourceProviderActorBase::SetContains(float values)
{
	_contains = values;
}
